package com.zzp.basepresenter.util;

import android.util.Log;

import com.zzp.basepresenter.BuildConfig;
import com.zzp.basepresenter.config.BaseConfig;


public class LoggerUtils {
    private static LoggerUtils instance;

    public static LoggerUtils getInstance() {
        if (instance == null) {
            synchronized (LoggerUtils.class) {
                if (instance == null) {
                    instance = new LoggerUtils();
                }
            }
        }
        return instance;
    }

    public void i(String values) {
        if (!BaseConfig.LOG_DEBUG) {
            return;
        }
        Log.i(BuildConfig.VERSION_NAME, "\t\t" + values);
        instance = null;
    }

    public void i(String values, Throwable t) {
        if (!BaseConfig.LOG_DEBUG) {
            return;
        }
        Log.i(BuildConfig.VERSION_NAME, "\t\t" + values, t);
        instance = null;
    }
}
